// 设置变量
@bg-color: #b7d4a8;
// 清除默认样式
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font: bold 20;
  font-family: 'Courier New', Courier, monospace;
}
// 设置主窗口样式
#main{
  width: 360px;
  height: 420px;
  background-color: @bg-color;
  margin: 100px auto;
  border: 10px solid black;
  border-radius: 20px;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: space-around;
}
// 设置游戏盒子
#gameBox{
  width: 304px;
  height: 304px;
  border: 2px solid black;
  position: relative;
  #snake{
    &>div{
      width: 10px;
      height: 10px;
      border: 1px solid @bg-color;
      background-color: black;
      position: absolute;
    }
  }
  #food{
    width: 10px;
    height: 10px;
    background-color: black;
    position: absolute;
    left: 40px;
    top: 40px;
  }
}
// 设置记分牌盒子
#scorePanel{
  width: 300px;
  display: flex;
  justify-content: space-between;
}